function [vector matrix] = im2size(image)

image_double = double(image/256);
image_after_transform = imresize(image_double, [15 18], 'bicubic');
matrix = uint8(image_after_transform*256);
vector = image_after_transform(:);
